package dk.mirasola.systemtraining.user.shared.service;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import dk.mirasola.systemtraining.user.shared.transfer.BiddingSetDetailsTO;
import dk.mirasola.systemtraining.user.shared.transfer.CreateBiddingSetTO;

import java.util.List;
import java.util.Set;

@RemoteServiceRelativePath("biddingset.rpc")
public interface BiddingSetDataProviderService extends RemoteService {
    void createBiddingSetAndFirstBiddingSession(CreateBiddingSetTO createBiddingSetTO);

    List<BiddingSetDetailsTO> getBiddingSetDetails(int offset, int limit);

    /**
     * Returns the initial data for creating the bidding set data provider
     * @return array with 2 entries containing current number of biddingsets and maximum allowed biddingsets
     */
    int[] initialData();

    void deleteBiddingSets(Set<String> biddingSetIds);
}
